Micron Document
Fox's Git Mirrors

Node / rns-mirrors / Reticulum-Go.git / files / pkg / sandbox / seccomp_linux_amd64.go

Displaying Raw • Download

pkg/sandbox/seccomp_linux_amd64.go 633735d797cc5f5d48cb2e22e8fd7cd743930daf (633735d7) Text, 955 B

// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2024-2026 Quad4.io

//go:build linux && amd64

package sandbox

import "golang.org/x/sys/unix"

func seccompAuditArch() (uint32, bool) {
return unix.AUDIT_ARCH_X86_64, true
}

// deniedSyscalls blocks high-risk operations while allowing normal Go and mesh I/O.
func deniedSyscalls() []int {
return []int{
unix.SYS_PTRACE,
unix.SYS_MOUNT,
unix.SYS_UMOUNT2,
unix.SYS_REBOOT,
unix.SYS_SWAPON,
unix.SYS_SWAPOFF,
unix.SYS_INIT_MODULE,
unix.SYS_FINIT_MODULE,
unix.SYS_DELETE_MODULE,
unix.SYS_KEXEC_LOAD,
unix.SYS_KEXEC_FILE_LOAD,
unix.SYS_USERFAULTFD,
unix.SYS_PERF_EVENT_OPEN,
unix.SYS_BPF,
unix.SYS_UNSHARE,
unix.SYS_SETNS,
unix.SYS_PIVOT_ROOT,
unix.SYS_CHROOT,
unix.SYS_PROCESS_VM_READV,
unix.SYS_PROCESS_VM_WRITEV,
unix.SYS_KCMP,
unix.SYS_IOPL,
unix.SYS_IOPERM,
unix.SYS_PERSONALITY,
unix.SYS_ACCT,
unix.SYS_CLOCK_SETTIME,
unix.SYS_SYSLOG,
}
}

Served by rngit 1.5.2 - Generated in 0.02s